﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using HNCDataSetTableAdapters;

public partial class Admin_Home_SliderFooter : System.Web.UI.Page
{
    ProductsTableAdapter pro = new ProductsTableAdapter();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        pro.DeleteProductByProductID(true, Convert.ToInt32(e.CommandArgument.ToString()));
        Response.Redirect("~/Admin/Home/SliderFooter.aspx");
    }
}